{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\n// handle border collapse\nfunction compactItemBorder(token, options) {\n  var childCombinator = options.borderElCls ? '> *' : '';\n  var hoverEffects = ['hover', options.focus ? 'focus' : null, 'active'].filter(Boolean).map(function (n) {\n    return \"&:\".concat(n, \" \").concat(childCombinator);\n  }).join(',');\n  return {\n    '&-item:not(&-last-item)': {\n      marginInlineEnd: -token.lineWidth\n    },\n    '&-item': Object.assign(Object.assign(_defineProperty({}, hoverEffects, {\n      zIndex: 2\n    }), options.focusElCls ? _defineProperty({}, \"&\".concat(options.focusElCls), {\n      zIndex: 2\n    }) : {}), _defineProperty({}, \"&[disabled] \".concat(childCombinator), {\n      zIndex: 0\n    }))\n  };\n}\n// handle border-radius\nfunction compactItemBorderRadius(prefixCls, options) {\n  var _ref2;\n  var childCombinator = options.borderElCls ? \"> \".concat(options.borderElCls) : '';\n  return _ref2 = {}, _defineProperty(_ref2, \"&-item:not(&-first-item):not(&-last-item) \".concat(childCombinator), {\n    borderRadius: 0\n  }), _defineProperty(_ref2, '&-item:not(&-last-item)&-first-item', _defineProperty({}, \"& \".concat(childCombinator, \", &\").concat(prefixCls, \"-sm \").concat(childCombinator, \", &\").concat(prefixCls, \"-lg \").concat(childCombinator), {\n    borderStartEndRadius: 0,\n    borderEndEndRadius: 0\n  })), _defineProperty(_ref2, '&-item:not(&-first-item)&-last-item', _defineProperty({}, \"& \".concat(childCombinator, \", &\").concat(prefixCls, \"-sm \").concat(childCombinator, \", &\").concat(prefixCls, \"-lg \").concat(childCombinator), {\n    borderStartStartRadius: 0,\n    borderEndStartRadius: 0\n  })), _ref2;\n}\nexport function genCompactItemStyle(token) {\n  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n    focus: true\n  };\n  return _defineProperty({}, \"\".concat(token.componentCls, \"-compact\"), Object.assign(Object.assign({}, compactItemBorder(token, options)), compactItemBorderRadius(token.componentCls, options)));\n}","map":{"version":3,"names":["compactItemBorder","token","options","childCombinator","borderElCls","hoverEffects","focus","filter","Boolean","map","n","join","marginInlineEnd","lineWidth","Object","assign","zIndex","focusElCls","compactItemBorderRadius","prefixCls","borderRadius","borderStartEndRadius","borderEndEndRadius","borderStartStartRadius","borderEndStartRadius","genCompactItemStyle","arguments","length","undefined","componentCls"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/style/compact-item.js"],"sourcesContent":["// handle border collapse\nfunction compactItemBorder(token, options) {\n  const childCombinator = options.borderElCls ? '> *' : '';\n  const hoverEffects = ['hover', options.focus ? 'focus' : null, 'active'].filter(Boolean).map(n => `&:${n} ${childCombinator}`).join(',');\n  return {\n    '&-item:not(&-last-item)': {\n      marginInlineEnd: -token.lineWidth\n    },\n    '&-item': Object.assign(Object.assign({\n      [hoverEffects]: {\n        zIndex: 2\n      }\n    }, options.focusElCls ? {\n      [`&${options.focusElCls}`]: {\n        zIndex: 2\n      }\n    } : {}), {\n      [`&[disabled] ${childCombinator}`]: {\n        zIndex: 0\n      }\n    })\n  };\n}\n// handle border-radius\nfunction compactItemBorderRadius(prefixCls, options) {\n  const childCombinator = options.borderElCls ? `> ${options.borderElCls}` : '';\n  return {\n    [`&-item:not(&-first-item):not(&-last-item) ${childCombinator}`]: {\n      borderRadius: 0\n    },\n    '&-item:not(&-last-item)&-first-item': {\n      [`& ${childCombinator}, &${prefixCls}-sm ${childCombinator}, &${prefixCls}-lg ${childCombinator}`]: {\n        borderStartEndRadius: 0,\n        borderEndEndRadius: 0\n      }\n    },\n    '&-item:not(&-first-item)&-last-item': {\n      [`& ${childCombinator}, &${prefixCls}-sm ${childCombinator}, &${prefixCls}-lg ${childCombinator}`]: {\n        borderStartStartRadius: 0,\n        borderEndStartRadius: 0\n      }\n    }\n  };\n}\nexport function genCompactItemStyle(token) {\n  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n    focus: true\n  };\n  return {\n    [`${token.componentCls}-compact`]: Object.assign(Object.assign({}, compactItemBorder(token, options)), compactItemBorderRadius(token.componentCls, options))\n  };\n}"],"mappings":";AAAA;AACA,SAASA,iBAAiB,CAACC,KAAK,EAAEC,OAAO,EAAE;EACzC,IAAMC,eAAe,GAAGD,OAAO,CAACE,WAAW,GAAG,KAAK,GAAG,EAAE;EACxD,IAAMC,YAAY,GAAG,CAAC,OAAO,EAAEH,OAAO,CAACI,KAAK,GAAG,OAAO,GAAG,IAAI,EAAE,QAAQ,CAAC,CAACC,MAAM,CAACC,OAAO,CAAC,CAACC,GAAG,CAAC,UAAAC,CAAC;IAAA,mBAASA,CAAC,cAAIP,eAAe;EAAA,CAAE,CAAC,CAACQ,IAAI,CAAC,GAAG,CAAC;EACxI,OAAO;IACL,yBAAyB,EAAE;MACzBC,eAAe,EAAE,CAACX,KAAK,CAACY;IAC1B,CAAC;IACD,QAAQ,EAAEC,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,qBAClCV,YAAY,EAAG;MACdW,MAAM,EAAE;IACV,CAAC,GACAd,OAAO,CAACe,UAAU,kCACdf,OAAO,CAACe,UAAU,GAAK;MAC1BD,MAAM,EAAE;IACV,CAAC,IACC,CAAC,CAAC,CAAC,4CACWb,eAAe,GAAK;MAClCa,MAAM,EAAE;IACV,CAAC;EAEL,CAAC;AACH;AACA;AACA,SAASE,uBAAuB,CAACC,SAAS,EAAEjB,OAAO,EAAE;EAAA;EACnD,IAAMC,eAAe,GAAGD,OAAO,CAACE,WAAW,eAAQF,OAAO,CAACE,WAAW,IAAK,EAAE;EAC7E,8FACgDD,eAAe,GAAK;IAChEiB,YAAY,EAAE;EAChB,CAAC,0BACD,qCAAqC,kCAC7BjB,eAAe,gBAAMgB,SAAS,iBAAOhB,eAAe,gBAAMgB,SAAS,iBAAOhB,eAAe,GAAK;IAClGkB,oBAAoB,EAAE,CAAC;IACvBC,kBAAkB,EAAE;EACtB,CAAC,2BAEH,qCAAqC,kCAC7BnB,eAAe,gBA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